package com.jinzhu.controller;


import com.jinzhu.pojo.Result;
import com.jinzhu.service.EmpService;
import com.jinzhu.service.LogService;
import com.jinzhu.service.StuService;
import com.jinzhu.utils.AliOSSUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class SysController {
    @Autowired
    private EmpService empService;
    @Autowired
    private AliOSSUtils aliOSSUtils;
    @Autowired
    private StuService stuService;
    @Autowired
    private LogService logService;

    //员工性别统计
    @GetMapping("/report/empGenderData")
    public Result empGenderData()  {
        return Result.success(empService.empGenderData());
    }
    //员工部门人数统计
    @GetMapping("/report/empJobData")
    public Result empJobData(){
        return Result.success(empService.empJobData());
    }
    //学员学历统计
    @GetMapping("/report/studentDegreeData")
    public Result studentDegreeData(){
        return Result.success(stuService.studentDegreeData());
    }
    //班级人数统计
    @GetMapping("/report/studentCountData")
    public Result studentCountData(){
        return Result.success(stuService.studentCountData());
    }




}
